#{extends 'frame.html' /}

#{set title:'审核任务' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/audit-task.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

#{/set}

#{authenticityToken /}

<div class="tabbedCard" id="waitingTaskPanel">

	<div class="contentTitle">任务处理</div>

	<div class="tabSwitchWrapper">

		<a class="tab-cell taskTypeTab focus" href="javascript:;" for="" status="WAIT_EXAMINE">待审核任务</a>

		<a class="tab-cell taskTypeTab" href="javascript:;" for="" status="EXAMINING">审核中任务</a>

	</div>



	<div id="taskFilterPanel">

		<span class="floatLeft mr10">平台</span>

		<select class="floatLeft mr10" id="platform">

			<option value="">全部</option>

			#{list items:Platforms, as:'p'}

			<option value="${p}">${p.title}</option>

			#{/list}

		</select>

		<span class="floatLeft mr10">店铺</span>

		<input type="text" id="shopName" class="inputText floatLeft required mr10" />

		<span class="floatLeft mr10">商家用户昵称</span>

		<input type="text" id="nick" class="inputText floatLeft required mr10" />

		<a class="stdColorButton floatLeft queryBtn" href="javascript:;" id="queryBtn">查询</a>

	</div>

	<div>

		<table class="normTable">

			<thead>

				<tr>

					<td style="width:30%">宝贝信息</td>

					<td>任务编号</td>

					<td>平台</td>

					<td>快递类型</td>

					<td>店铺</td>

					<td>用户昵称</td>

					<td>是否优先审核</td>

					<td>子任务总数</td>

					<td>创建时间</td>

					<td>操作</td>

				</tr>

			</thead>

			<tbody id="taskContainer"></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有任务!

			</div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>

		<div class="pagin-btm clearFix"style="display: none;">

			<div class="pagination"></div>

		</div>

	</div>

</div>





<div class="contentCard" id="taskDetail">

	

</div>





<textarea id="taskDetailEmptyTemp" class="muban">

	<div class="contentTitle">

		任务详情

	</div>

	<div class="contentBody" id="taskDetailPanel">

		<div class="infoLine">

			<span class="floatLeft green lbl">平台</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">店铺</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">类型</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">延时发布间隔</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">定时发布间隔</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">定时发布单数</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品链接</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品标题</span>

			<p>&nbsp;&nbsp;&nbsp;&nbsp;</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品主图</span>

			&nbsp;&nbsp;&nbsp;&nbsp;

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">规格</span>

			<span class="mr10"></span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品售价</span>

			<span class="mr10"></span>

			<span class="mr10">元</span>

			<span class="mr10 orange">X</span>

			<span class="mr10"></span>

			<span class="mr10">件</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品重量</span>

			<span class="mr10"></span>

			<span class="mr10">kg/件</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索页面价格</span>

			<span class="mr10"></span>

			<span class="mr10">元</span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索方案1</span>

			<span class="mr10"></span>

			<span>|</span>

			<span class="mr10"></span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索方案2</span>

			<span class="mr10"></span>

			<span>|</span>

			<span class="mr10"></span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索范围</span>

			<span class="mr-4"></span>

			<span class="mr-4">~</span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">所在地</span>

			<span class="mr-4"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">运费收取方式</span>

			<span class="mr-4"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">订单留言</span>

			<span class="mr-4"></span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">特殊要求</span>

			<span class="mr-4"></span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">刷单数量</span>

			<span class="mr-4">100</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">订单分布</span>

			<span class="mr-4">PC</span>

			<span class="mr10"></span>

			<span class="mr10">|</span>

			<span class="mr-4"></span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">每单加</span>

			<span class="mr-4 red"></span>

			<span class="mr-4">金币</span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">提升排名</span>

			<span class="mr-4 red"></span>

			<span class="mr-4">金币</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">加赏佣金</span>

			<span class="mr-4 red"></span>

			<span class="mr-4">金币</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">优先审单</span>

			<span class="mr10 bold iconfont">&#xf0156;</span>

			<span class="mr-4 red"></span>

			<span class="mr-4">金币</span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">延长购买周期</span>

			<span class="mr-4 black bold"></span>

			<span class="mr-4">天</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">评价关键字</span>

			<span class="mr10"></span>

			<span class="mr10"></span>

		</div>

	</div>

</textarea>

<!-- 任务详情模板-->

<textarea id="taskDetailTemp" class="muban">

	{{#results}}

	<div class="contentTitle">

		<span class="iconfont">&#xf0142;</span>

		任务详情

	</div>

	<div class="contentBody" id="taskDetailPanel">

		<div class="infoLine">

			<span class="floatLeft green lbl">平台</span>

			<p>{{platformStr}}</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">店铺</span>

			<p>{{shopName}}</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">类型</span>

			<p>{{typeStr}}</p>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl ">延时发布间隔</span>

			<p class="red">{{delaySpan}}分钟</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">定时发布间隔</span>

			<p class="red">{{publishTimerInterval}}分钟</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">定时发布单数</span>

			<p class="red">{{publishTimerValue}}单</p>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品地址</span>

			<p>{{itemUrl}}</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品标题</span>

			<p>{{itemTitle}}</p>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品主图</span>

			<a href="{{itemPic}}" target="_blank" >

				<img class="item-pic" src="{{itemPic}}" />

			</a>

		</div>

		{{#isSubwayItem}}

		<div class="infoLine">

			<span class="floatLeft green lbl">直通车商品图</span>

			{{#subwayPic}}

			<a href="{{.}}" target="_blank" >

				<img class="item-pic" src="{{.}}" />

			</a>

			{{/subwayPic}}

		</div>

		{{/isSubwayItem}}

		

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">规格</span>

			<sapn class="mr10"></sapn>

			{{#itemPropsList}}

			<span class="mr10">{{prop}}</span>

			{{/itemPropsList}}

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品售价</span>

			<span class="mr10">{{itemPriceStr}}</span>

			<span class="mr10">元</span>

			<span class="mr10 orange">X</span>

			<span class="mr10">{{itemBuyNum}}</span>

			<span class="mr10">件</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品重量</span>

			<span class="mr10">{{expressWeight}}</span>

			<span class="mr10">kg/件</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索页面价格</span>

			{{#hasitemDisplayPrice}}

			<span class="mr10">{{itemDisplayPrice}}</span>

			<span class="mr10">元</span>

			{{/hasitemDisplayPrice}}

				{{^hasitemDisplayPrice}}

			<span class="mr10">未设置</span>

			{{/hasitemDisplayPrice}}

		</div>

		<hr/>

		{{#searchPlans}}

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索方案</span>

			<span class="mr10">

				{{#inTmall}}

				<span class="bold red">天猫搜索</span>

				{{/inTmall}}

					关键词：

				<span class="mr-4 black bold">{{word}}</span>|<span class="mr-4 black bold">{{totalNum}}单</span>|<span class="mr-4 black bold">{{flowNum}}个流量</span>

			</span>

			<span>|</span>

			<span class="mr10">

				筛选分类：

				<span class="mr-4 black bold">{{skus}}</span>

				&nbsp;&nbsp;&nbsp;(若有多个则以,号隔开)

			</span>

		</div>

		{{/searchPlans}}

		<div class="infoLine">

			<span class="floatLeft green lbl">搜索范围</span>

			<span class="mr-4">{{itemSearchMinPrice}}</span>

			<span class="mr-4">~</span>

			<span class="mr10">{{itemSearchMaxPrice}}</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">所在地</span>

			<span class="mr-4">{{itemSearchLocation}}</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">运费收取方式</span>

			<span class="mr-4">

				{{#isFreeShipping}}包邮{{/isFreeShipping}}{{^isFreeShipping}}自费{{/isFreeShipping}}

			</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">订单留言</span>

			<span class="mr-4">{{orderMessages}}</span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">特殊要求</span>

			<input id="taskRequest" value="{{taskRequest}}"style="width:700px;"/>

			<span class="mr-4"><a class="smalltdColorButton access" href="javascript:;" tid="{{idStr}}" id="modifyTaskRequestBtn">确认修改</a></span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">刷单数量</span>

			<span class="mr-4">{{totalOrderNum}}</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">订单分布</span>

			<span class="mr-4">PC</span>

			<span class="mr10">{{pcOrderNum}}</span>

			<span class="mr10">|</span>

			<span class="mr-4">手机/iPad</span>

			<span class="mr10">{{mobileOrderNum}}</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">快递类型</span>

			<span class="mr10">{{expressTypeStr}}</span>

			<span class="mr10">|</span>

			<span class="mr-4">收取费用</span>

			<span class="mr10 red">{{totalOrderNum}}单x{{hasExpressIngot}}元={{expressIngotStr}}元</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">每单加</span>

			<span class="mr-4 red">

				{{#hasExtraRewardIngot}}{{extraRewardIngot}}{{/hasExtraRewardIngot}}{{^hasExtraRewardIngot}}0{{/hasExtraRewardIngot}}

			</span>

			<span class="mr-4">金币</span>

		</div>

		{{#sysRefund}}

		<div class="infoLine">

			<span class="floatLeft green lbl">平台返款</span>

			<span class="mr-4 red">

				{{totalOrderNum}} 单 x {{itemPerFee}} 元 x 0.6% = {{sysRefundFee}}

			</span>

			<span class="mr-4">金币</span>

		</div>

		{{/sysRefund}}

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">提升排名</span>

			<span class="mr-4 red">

				{{#hasSpeedTaskIngot}}{{speedTaskIngot}}{{/hasSpeedTaskIngot}}{{^hasSpeedTaskIngot}}0{{/hasSpeedTaskIngot}}

			</span>

			<span class="mr-4">金币</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">加赏佣金</span>

			<span class="mr-4 red">

				{{#hasExtraRewardIngot}}{{extraRewardIngot}}{{/hasExtraRewardIngot}}{{^hasExtraRewardIngot}}0{{/hasExtraRewardIngot}}

			</span>

			<span class="mr-4">金币</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">优先审单</span>

			<span class="mr-4 red">

				{{#speedExamine}}是{{/speedExamine}}{{^speedExamine}}否{{/speedExamine}}

			</span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">延长购买周期</span>

			<span class="mr-4 black bold">

				{{#hasBuyTimeInterval}}{{buyTimeInterval}}{{/hasBuyTimeInterval}}{{^hasBuyTimeInterval}}0{{/hasBuyTimeInterval}}

			</span>

			<span class="mr-4">月</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">评价关键字</span>

			<span class="mr10">{{goodCommentWords}}</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">评价图片</span>

			{{#commentPic}}

			<a href="{{.}}" target="_blank" >

				<img class="item-pic" src="{{.}}" />

			</a>

			{{/commentPic}}

		</div>

		<div class="infoLine">

			<div class="centerbtn">

				<span class="mr10">

					<a class="stdColorButton access" href="#waitingTaskPanel" id="examinePassBtn" tid="{{idStr}}">审核通过</a>

				</span>

				<span class="mr10">

					<a class="stdColorButton refuse" href="#waitingTaskPanel" id="examineNotPassBtn">审核未通过</a>

				</span>

			</div>

		</div>

	</div>

	{{/results}}

</textarea>

<!-- 任务列表模板-->

<textarea id="taskTemp" class="muban">

	{{#results}}

	<tr>

		<td class="item-list">

			<div class="item-box">

				<div class="pic">

					<img src="{{itemPic}}" />

				</div>

				<p class="title">{{itemTitle}}</p>

			</div>

		</td>

		<td>{{taskId}}</td>

		<td> <i class="plat_small {{platIcon}}"></i></td>

        <td>{{expressTypeStr}}</td>

		<td>{{shopName}}</td>

		<td>{{sellerNick}}<br/>{{nameStr}}</td>

		{{#speedExamine}}

          <td class="green">是</td>

         {{/speedExamine}}

         {{^speedExamine}}

          <td class="red">否</td>

         {{/speedExamine}}

        <td>{{totalOrderNum}}</td>

		<td>{{createTimeStr}}</td>

		<td>

			<a class="stdColorButton examine isWorking" href="#taskDetail" tid="{{taskId}}">审核</a>

		</td>

	</tr>

	{{/results}}

</textarea>



<!--拒绝理由窗口-->

<div class="popWrapper" id="refuseReasonWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">任务审核不通过原因</h3>

		<div class="modalWndInner">

			<div id="reasonShower">

				<textarea class="inputText" id="txtReason"></textarea>

				<span id="error"></span>

			</div>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnRefuse" href="javascript:;" class="botButton" bid="">确认</a>

		</div>

	</div>

</div>



<!-- templates -->

#{authenticityToken /}



#{set 'moreScripts'}

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/audit-task.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'task';</script>

#{/set}